/**
 * jims
 */
package com.jims.master.modules.doctor.medicalService.service;

import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;
import com.jims.master.modules.base.user.service.MasterDoctorinfoService;
import com.jims.master.modules.doctor.medicalService.dao.DoctorAccessCountDao;
import com.jims.master.modules.doctor.medicalService.entity.DoctorAccessCount;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Service
 * @author jicunteng
 * @version 2017-06-12
 */
@Service
@Transactional(readOnly = true)
public class DoctorAccessCountService extends CrudService<DoctorAccessCountDao, DoctorAccessCount> {
	@Autowired
	private DoctorAccessCountDao doctorAccessCountDao;

	@Override
    public DoctorAccessCount get(String id) {
		return super.get(id);
	}
	
	@Override
    public List<DoctorAccessCount> findList(DoctorAccessCount doctorAccessCount) {
		return super.findList(doctorAccessCount);
	}
	
	@Override
    public Page<DoctorAccessCount> findPage(Page<DoctorAccessCount> page, DoctorAccessCount doctorAccessCount) {
		return super.findPage(page, doctorAccessCount);
	}
	
	@Override
    @Transactional(readOnly = false)
	public int save(DoctorAccessCount doctorAccessCount) {
		return super.save(doctorAccessCount);
	}
	
	@Override
    @Transactional(readOnly = false)
	public int delete(DoctorAccessCount doctorAccessCount) {
		return super.delete(doctorAccessCount);
	}

	public DoctorAccessCount getByDoctorid(String doctorid) {
		return doctorAccessCountDao.getByDoctorid(doctorid);
	}
	
}